<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title><?php echo$title; ?></title>

		<!-- Bootstrap -->
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<link href="<?php echo base_url(); ?>assets/bootstrap/dist/css/admin.css" rel="stylesheet" type="text/css">
	</head>
	
	<body style data-twttr-rendered="true" onload="">
	
	<div id="wrapper">
	  <!-- Sidebar -->
      <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="<?php echo base_url(); ?>admin"><i class="glyphicon glyphicon-th-large"></i>  Essay Quiz Admin</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">
          <ul class="nav navbar-nav side-nav">
            <li class="<?php if($this->uri->segment(2) == 'home'){echo'active';} ?>"><a href="<?php echo base_url(); ?>admin"><i class="glyphicon glyphicon-home"></i> Dashboard</a></li>
            <li class="<?php if($this->uri->segment(2) == 'test'){echo'active';} ?>"><a href="<?php echo base_url(); ?>admin/test"><i class="glyphicon glyphicon-list-alt"></i> Test</a></li>
            <li class="<?php if($this->uri->segment(2) == 'soal'){echo'active';} ?>"><a href="<?php echo base_url(); ?>admin/soal"><i class="glyphicon glyphicon-list-alt"></i> Soal</a></li>
            <li class="<?php if($this->uri->segment(2) == 'penilaian'){echo'active';} ?>"><a href="<?php echo base_url(); ?>admin/penilaian"><i class="glyphicon glyphicon-edit"></i> Penilaian</a></li>
            <li class="dropdown <?php if($this->uri->segment(2) == 'user' or $this->uri->segment(2) == 'grafik' or $this->uri->segment(2) == 'kata' or $this->uri->segment(1) == 'main'){echo'open';} ?>">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-caret-square-o-down"></i> Fitur Tambahan <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li class="<?php if($this->uri->segment(2) == 'user'){echo'active';} ?>"><a href="<?php echo base_url(); ?>admin/user"><i class="glyphicon glyphicon-user"></i> User / Peserta Ujian</a></li>
                <li class="<?php if($this->uri->segment(2) == 'kata'){echo'active';} ?>"><a href="<?php echo base_url(); ?>admin/kata"><i class="glyphicon glyphicon-font"></i> Kata</a></li>
                <li class="<?php if($this->uri->segment(2) == 'grafik'){echo'active';} ?>"><a href="<?php echo base_url(); ?>admin/grafik"><i class="glyphicon glyphicon-stats"></i> Gafik Nilai</a></li>
                <li class="<?php if($this->uri->segment(1) == 'main'){echo'active';} ?>"><a href="<?php echo base_url(); ?>main"><i class="glyphicon glyphicon-fire"></i> Demo Manual</a></li>
              </ul>
            </li>
          </ul>

          <ul class="nav navbar-nav navbar-right navbar-user">
            <li class="dropdown messages-dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-envelope"></i> Messages <span class="badge">7</span> <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li class="dropdown-header">7 New Messages</li>
                <li class="message-preview">
                  <a href="#">
                    <span class="avatar"><img src="http://placehold.it/50x50"></span>
                    <span class="name">John Smith:</span>
                    <span class="message">Hey there, I wanted to ask you something...</span>
                    <span class="time"><i class="glyphicon glyphicon-time"></i> 4:34 PM</span>
                  </a>
                </li>
                <li class="divider"></li>
                <li class="message-preview">
                  <a href="#">
                    <span class="avatar"><img src="http://placehold.it/50x50"></span>
                    <span class="name">John Smith:</span>
                    <span class="message">Hey there, I wanted to ask you something...</span>
                    <span class="time"><i class="glyphicon glyphicon-time"></i> 4:34 PM</span>
                  </a>
                </li>
                <li class="divider"></li>
                <li class="message-preview">
                  <a href="#">
                    <span class="avatar"><img src="http://placehold.it/50x50"></span>
                    <span class="name">John Smith:</span>
                    <span class="message">Hey there, I wanted to ask you something...</span>
                    <span class="time"><i class="glyphicon glyphicon-time"></i> 4:34 PM</span>
                  </a>
                </li>
                <li class="divider"></li>
                <li><a href="#">View Inbox <span class="badge">7</span></a></li>
              </ul>
            </li>

            <li class="dropdown user-dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-user"></i> <?php echo$this->session->userdata('username'); ?> <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="#"><i class="glyphicon glyphicon-user"></i> Profile</a></li>
                <li><a href="#"><i class="glyphicon glyphicon-envelope"></i> Inbox <span class="badge">7</span></a></li>
                <li><a href="#"><i class="glyphicon glyphicon-edit"></i> Settings</a></li>
                <li class="divider"></li>
                <li><a href="<?php echo base_url(); ?>admin/logout"><i class="glyphicon glyphicon-log-out"></i> Log Out</a></li>
              </ul>
            </li>
          </ul>
        </div><!-- /.navbar-collapse -->
      </nav>
	  
	  
	  <?php
	  $icon = array('glyphicon-asterisk',
'glyphicon-plus',
'glyphicon-euro',
'glyphicon-minus',
'glyphicon-cloud',
'glyphicon-envelope',
'glyphicon-pencil',
'glyphicon-glass',
'glyphicon-music',
'glyphicon-search',
'glyphicon-heart',
'glyphicon-star',
'glyphicon-star-empty',
'glyphicon-user',
'glyphicon-film',
'glyphicon-th-large',
'glyphicon-th',
'glyphicon-th-list',
'glyphicon-ok',
'glyphicon-remove',
'glyphicon-zoom-in',
'glyphicon-zoom-out',
'glyphicon-off',
'glyphicon-signal',
'glyphicon-cog',
'glyphicon-trash',
'glyphicon-home',
'glyphicon-file',
'glyphicon-time',
'glyphicon-road',
'glyphicon-download-alt',
'glyphicon-download',
'glyphicon-upload',
'glyphicon-inbox',
'glyphicon-play-circle',
'glyphicon-repeat',
'glyphicon-refresh',
'glyphicon-list-alt',
'glyphicon-lock',
'glyphicon-flag',
'glyphicon-headphones',
'glyphicon-volume-off',
'glyphicon-volume-down',
'glyphicon-volume-up',
'glyphicon-qrcode',
'glyphicon-barcode',
'glyphicon-tag',
'glyphicon-tags',
'glyphicon-book',
'glyphicon-bookmark',
'glyphicon-print',
'glyphicon-camera',
'glyphicon-font',
'glyphicon-bold',
'glyphicon-italic',
'glyphicon-text-height',
'glyphicon-text-width',
'glyphicon-align-left',
'glyphicon-align-center',
'glyphicon-align-right',
'glyphicon-align-justify',
'glyphicon-list',
'glyphicon-indent-left',
'glyphicon-indent-right',
'glyphicon-facetime-video',
'glyphicon-picture',
'glyphicon-map-marker',
'glyphicon-adjust',
'glyphicon-tint',
'glyphicon-edit',
'glyphicon-share',
'glyphicon-check',
'glyphicon-move',
'glyphicon-step-backward',
'glyphicon-fast-backward',
'glyphicon-backward',
'glyphicon-play',
'glyphicon-pause',
'glyphicon-stop',
'glyphicon-forward',
'glyphicon-fast-forward',
'glyphicon-step-forward',
'glyphicon-eject',
'glyphicon-chevron-left',
'glyphicon-chevron-right',
'glyphicon-plus-sign',
'glyphicon-minus-sign',
'glyphicon-remove-sign',
'glyphicon-ok-sign',
'glyphicon-question-sign',
'glyphicon-info-sign',
'glyphicon-screenshot',
'glyphicon-remove-circle',
'glyphicon-ok-circle',
'glyphicon-ban-circle',
'glyphicon-arrow-left',
'glyphicon-arrow-right',
'glyphicon-arrow-up',
'glyphicon-arrow-down',
'glyphicon-share-alt',
'glyphicon-resize-full',
'glyphicon-resize-small',
'glyphicon-exclamation-sign',
'glyphicon-gift',
'glyphicon-leaf',
'glyphicon-fire',
'glyphicon-eye-open',
'glyphicon-eye-close',
'glyphicon-warning-sign',
'glyphicon-plane',
'glyphicon-calendar',
'glyphicon-random',
'glyphicon-comment',
'glyphicon-magnet',
'glyphicon-chevron-up',
'glyphicon-chevron-down',
'glyphicon-retweet',
'glyphicon-shopping-cart',
'glyphicon-folder-close',
'glyphicon-folder-open',
'glyphicon-resize-vertical',
'glyphicon-resize-horizontal',
'glyphicon-hdd',
'glyphicon-bullhorn',
'glyphicon-bell',
'glyphicon-certificate',
'glyphicon-thumbs-up',
'glyphicon-thumbs-down',
'glyphicon-hand-right',
'glyphicon-hand-left',
'glyphicon-hand-up',
'glyphicon-hand-down',
'glyphicon-circle-arrow-right',
'glyphicon-circle-arrow-left',
'glyphicon-circle-arrow-up',
'glyphicon-circle-arrow-down',
'glyphicon-globe',
'glyphicon-wrench',
'glyphicon-tasks',
'glyphicon-filter',
'glyphicon-briefcase',
'glyphicon-fullscreen',
'glyphicon-dashboard',
'glyphicon-paperclip',
'glyphicon-heart-empty',
'glyphicon-link',
'glyphicon-phone',
'glyphicon-pushpin',
'glyphicon-usd',
'glyphicon-gbp',
'glyphicon-sort',
'glyphicon-sort-by-alphabet',
'glyphicon-sort-by-alphabet-alt',
'glyphicon-sort-by-order',
'glyphicon-sort-by-order-alt',
'glyphicon-sort-by-attributes',
'glyphicon-sort-by-attributes-alt',
'glyphicon-unchecked',
'glyphicon-expand',
'glyphicon-collapse-down',
'glyphicon-collapse-up',
'glyphicon-log-in',
'glyphicon-flash',
'glyphicon-log-out',
'glyphicon-new-window',
'glyphicon-record',
'glyphicon-save',
'glyphicon-open',
'glyphicon-saved',
'glyphicon-import',
'glyphicon-export',
'glyphicon-send',
'glyphicon-floppy-disk',
'glyphicon-floppy-saved',
'glyphicon-floppy-remove',
'glyphicon-floppy-save',
'glyphicon-floppy-open',
'glyphicon-credit-card',
'glyphicon-transfer',
'glyphicon-cutlery',
'glyphicon-header',
'glyphicon-compressed',
'glyphicon-earphone',
'glyphicon-phone-alt',
'glyphicon-tower',
'glyphicon-stats',
'glyphicon-sd-video',
'glyphicon-hd-video',
'glyphicon-subtitles',
'glyphicon-sound-stereo',
'glyphicon-sound-dolby',
'glyphicon-sound-5-1',
'glyphicon-sound-6-1',
'glyphicon-sound-7-1',
'glyphicon-copyright-mark',
'glyphicon-registration-mark',
'glyphicon-cloud-download',
'glyphicon-cloud-upload',
'glyphicon-tree-conifer',
'glyphicon-tree-deciduous'
);

	/**
	foreach($icon as $nama){
		?>
		<li class="glyphicon <?php echo$nama; ?>" title="<?php echo$nama; ?>"></li>
		<?php
	}
	/**/
?>